package y23.Apr;

public class Num9 {
    public static void main(String[] args) {
        int num = 0;
        for(int i=1;i<=100;i++){
            int t=i;
            if(t%10==9)
                num++;
            if(t/10==9)
                num++;
        }
        System.out.println(num);
    }
}
